package cn.ztf.zshop.sys.service;

import cn.ztf.zshop.sys.vo.RoleVo;
import cn.ztf.zshop.sys.po.Role;
import cn.ztf.zshop.sys.dto.RoleDto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface SysRoleService extends IService<Role> {
    Page<RoleVo> pageRole(Page<Role> page);
    List<RoleVo> listRole();

    RoleVo getRoleById(Long roleId);

    void create(RoleDto roleDto);

    void updateRole(RoleDto roleDto);

    void delete(Long id);
}
